/*
 * 铁路道岔故障检测信息管理系统
 * Design by 魏梓晟
 * Version :1.0
 */
package com.railway.switchs.domain.dto.business;

import java.io.Serializable;
import java.util.List;

import com.railway.switchs.domain.pojo.business.SwitchInfoPojo;
import com.railway.switchs.enums.EnumRunType;
import com.railway.switchs.utils.StringUtil;
import lombok.Data;
/**
 * switch_info - 道岔信息表 实体类
 * 
 * @author 魏梓晟
 */
@Data
public class SwitchInfo extends SwitchInfoPojo implements Serializable {

    private static final long serialVersionUID = 1L;
	
	public SwitchInfo(){

    }

    public SwitchInfo(Long id){
        this.setId(id);
    }

    private String runTypeDesc;

	public String getrunTypeDesc(){
        if(StringUtil.isEmpty(getRunType())){
            return "";
        }
        return EnumRunType.getName(getRunType());
    }

    private List<String> switchCodeList;
}
